package com.shangcg.util;

import lombok.SneakyThrows;

import java.util.concurrent.*;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 线程池测试工具
 * 10个线程卖1000张票，查看结果
 */
public class ExecutorUtil {


    static ThreadPoolExecutor poolExecutor = new ThreadPoolExecutor(5, 10, 100, TimeUnit.SECONDS,
            new ArrayBlockingQueue<>(1000), new ThreadPoolExecutor.AbortPolicy());


    public static void main(String[] args) {


    }

}





